{% extends "projects/base.html" %}
{% load i18n %}

{% block title %}{% trans ' Projects' %}{% endblock %}

{% block branding %}
{% trans 'Homebase Projects' %}
{% endblock %}

{% block content %}
{% if project_list %}
        {% for project in project_list %}
	<div class=projectoutline>
		<div class=projecttitle><b>{{ project.title }}</b></div>
		<div class=projectinside>
			{{ project.description }}<br>
			<a href='{{ project.url }}'>Live site</a><br>
			<a href='{{ project.id }}'>Project Home</a><br>
			Priority: {{ project.priority }}<br>
			Complete by: {{ project.completiondate }}
			{% if project.completed %} <b>Project has been completed.</b> {% endif %}
		</div>
	</div>
        {% endfor %}
{% else %}
        <p>No projects are available.</p>
{% endif %} {% endblock %}

{% block context_box %}
	<a href='add/'><img alt="New project" title="New project" src="/homebase/media/images/new.png" width=45 height=45 class=controlpanel></a>&nbsp
	<a href='settings/'><img alt="Settings" title="Settings" src="/homebase/media/images/monitor.png" width=45 height=45 class=controlpanel></a>&nbsp
{% endblock %}